package test;

import java.util.Scanner;

public class test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个3位数：");
        int num = sc.nextInt();
        int ba = num / 100;
        int si = num / 10 % 10;
        int ge = num % 10;
        System.out.println("百位数是：" + ba);
        System.out.println("十位数是：" + si);
        System.out.println("个位数是：" + ge);

    }

}
